<template>
	<div>
		<img v-show="isShow" src="../images/imgjiazai.png"/>
		<img v-show="!isShow" :src="src" @load="onImgLoad"/>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				isShow:true,
			}
		},
		props:{
			src:String
		},
		methods:{
			onImgLoad(e){
				this.isShow = !this.isShow
			}
		}
	}
</script>

<style lang="scss" scoped="scoped">
	div{
		img{
			display: inline-block;
			margin: 0 auto;
			width: 100%;
		}
	}
</style>